<?php
/**
 * 
 * @author Todd
 *
 */
class Control_Account_listChannel  extends Control_Account {
	function listChannel() {
		$action = MooForm::request('action');
		if($action == 0) {
			
			$queryChannel = MooConfig::get('account.queryChannel');
			
			//　根据 key value 查询到json数据 返回即可
			$url = $queryChannel;
			$req = MooUtil::curl_send($url);
			
			if ($req) {
				$reqData = MooJson::decode($req);			
				MooView::set('channelData', $reqData);
			}
			
			MooView::render('listChannel');
		} 
	}
}